package com.groupbuying.redpacket.dao;

import com.groupbuying.redpacket.domain.CustomerDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * mayunfei
 */
@Mapper
@Repository
public interface CustomerDao {

	CustomerDO get(String uuid);
	
	List<CustomerDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CustomerDO customer);
	
	int update(CustomerDO customer);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

    List<CustomerDO> getCustomerByMobile(String mobile);

    String getmobile(String mobile);
}
